package com.xywl.escort.view.order.subscription;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.BaseResp;
import com.xywl.escort.bean.DefaultResp;
import com.xywl.escort.bean.DeliveryApplyReq;
import com.xywl.escort.bean.ProjectDeliveryDetailResp;
import com.xywl.escort.bean.ProjectLogisticsResp;
import com.xywl.escort.bean.ProjectSpecResp;

import java.util.List;

public interface DeliveryDialogContract {

    interface Presenter extends BasePresenter {
        void takeView(DeliveryDialogContract.View view);

        void loadSpec(String projectId);

        void loadAddress();

        void delivery(DeliveryApplyReq req);
    }

    interface View extends BaseView<Presenter> {

        void loadSpecSuccess(List<ProjectSpecResp.DataBean> data);

        void loadSpecFailure();

        void loadAddressSuccess(DefaultResp resp);

        void loadAddressFailure();

        void deliverySuccess(BaseResp resp);

        void deliveryFailure(String msg);
    }
}
